﻿using UnityEngine;
using System.Collections;

public class staticTools {

	public static void SetLayerRecursively(GameObject go, int layerNumber)
    {
        foreach (Transform trans in go.GetComponentsInChildren<Transform>(true))
        {
            trans.gameObject.layer = layerNumber;
        }
    }
	
	public static void SetParticleScale(ParticleSystem particle, float Amount)
	{
		particle.startSpeed *= Amount;
		particle.startLifetime *= Amount;
		particle.startSize *= Amount;
		particle.gravityModifier *= Amount;
		//particle.emissionRate *= 
	}
}
